<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>Holy个人后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <link href="/ace/assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/ace/assets/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/ace/assets/css/ace.min.css"/>
    <link rel="stylesheet" href="/ace/assets/css/ace-rtl.min.css"/>
    <link rel="stylesheet" href="/vendor/admin/css/admin.css">

</head>

<body class="login-layout">
<div class="main-container">
    <div class="main-content">
        <div class="row">
            <div class="col-sm-10 col-sm-offset-1">
                <div class="login-container">
                    <div class="center">
                        <h1>
                            <i class="icon-leaf green"></i>
                            <span class="red">Holy</span>
                            <span class="white">个人后台管理系统</span>
                        </h1>
                        <h4 class="blue">@ 长乐未央---黄老师工作室。</h4>
                    </div>

                    <div class="position-relative">
                        <div id="login-box" class="login-box visible widget-box no-border">
                            <div class="widget-body">
                                <div class="widget-main">
                                    <h4 class="header blue lighter bigger">
                                        <i class="icon-coffee green"></i>
                                        请输入您的用户信息
                                    </h4>

                                    @include('layouts.partials._flash')

                                    <form method="POST" action="{{ route('login') }}">
                                        {{ csrf_field() }}
                                        <label class="block clearfix">
                                            <span class="block input-icon input-icon-right">
                                                <input type="text" class="form-control" name="name"
                                                       placeholder="用户名/邮箱/手机号码" value="{{ old('name') }}" required
                                                       autofocus/>
                                                <i class="icon-user"></i>
                                            </span>
                                        </label>

                                        <label class="block clearfix">
                                            <span class="block input-icon input-icon-right">
                                                <input type="password" class="form-control" name="password"
                                                       placeholder="请输入密码" required/>
                                                <i class="icon-eye-close" state="off"></i>
                                            </span>
                                        </label>

                                        <label class="block clearfix">
                                            <span class="block input-icon input-icon-right">
                                                <input type="text" class="form-control" name="captcha"
                                                       placeholder="请输入验证码" required/>
                                                <i class="icon-code-fork"></i>
                                            </span>
                                        </label>
                                        <img src="{{ captcha_src() }}" alt="" style="cursor: pointer"
                                             onclick="this.src='{{captcha_src()}}&'+Math.random()">

                                        <div class="clearfix">
                                            <label class="inline">
                                                <input type="checkbox" class="ace"
                                                       name="remember" {{ old('remember') ? 'checked' : '' }} />
                                                <span class="lbl"> 记住一万年</span>
                                            </label>

                                            <button type="submit" class="width-35 pull-right btn btn-sm btn-primary">
                                                <i class="icon-key"></i>
                                                登 录
                                            </button>
                                        </div>

                                    </form>

                                    <div class="social-or-login center">
                                        <span class="bigger-110">使用其他方式登录</span>
                                    </div>

                                    <div class="social-login center">
                                        <a class="btn btn-primary">
                                            <i class="icon-facebook"></i>
                                        </a>

                                        <a class="btn btn-info">
                                            <i class="icon-twitter"></i>
                                        </a>

                                        <a class="btn btn-danger">
                                            <i class="icon-google-plus"></i>
                                        </a>
                                    </div>
                                </div><!-- /widget-main -->

                                <div class="toolbar clearfix">
                                    <div>
                                        <a href="{{ route('password.request') }}" class="forgot-password-link"><i
                                                    class="icon-arrow-left"></i>
                                            忘记密码
                                        </a>
                                    </div>

                                    <div>
                                        <a href="{{ route('register') }}" class="user-signup-link">我要注册<i
                                                    class="icon-arrow-right"></i></a>
                                    </div>
                                </div>
                            </div><!-- /widget-body -->
                        </div><!-- /login-box -->
                    </div><!-- /position-relative -->
                </div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div>
</div><!-- /.main-container -->

<script src="/ace/assets/js/jquery-1.10.2.min.js"></script>
<script src="/ace/assets/js/bootstrap.min.js"></script>
<script>
    $(function () {
        var ele_pass_box = document.getElementsByTagName("div")[0];
        var ele_pass = ele_pass_box.getElementsByTagName("input")[0];
        var ele_eye = ele_pass_box.getElementsByTagName("i")[0];
        ele_eye.onclick = function () {
            var state = this.getAttribute("state");
            if(state === "off") {
                ele_pass.setAttribute("type", "text");
                ele_eye.setAttribute("state", "on");
                ele_eye.style.opacity = 0.2;
            } else {
                ele_pass.setAttribute("type", "password");
                ele_eye.setAttribute("state", "off");
                ele_eye.style.opacity = 1;
            }
        }
    })
</script>
</body>
</html>

